<?php
class InviteFriendDailyRewardAction extends SzAbstractAction {
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $reqTime
     * @param $id
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $id, $reqTime) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            array('status' => NewFriendService::get()->inviteFriendDailyReward($userId,$id,$reqTime))
        );
    }
}